package io.renren.modules.order.enity;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

@Data
public  class OrderInfo{
    private String spuName;
    private String skuSpecs;
    public String toJsonString() throws JsonProcessingException {
        try {
            ObjectMapper objectMapper = new ObjectMapper();
            return objectMapper.writeValueAsString(this);
        }catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
